<extend name="Public/nodecration"/>
<block name="body">
    <div class="text-left" style="margin-top:10px; ">
        <a href="{:U('Packet/index')}" class="btn btn-success " style="">返回</a>
        <div style="margin-left:30%; display: inline">
            <if condition="($order.is_packet eq 0)">
               <a href="{:U('Packet/packetIt')}&orderid={$order['orderid']}" class="btn btn-primary " style="">打包该订单</a>
            </if>
            <if condition="($order.is_packet eq 1)">
                <a  class="btn btn-danger " style="">该订单已被打包</a>
            </if>
        </div>
    </div>
    <table style="width:100%;margin-top:10px;">
        <tr style="border:1px solid #ddd;">
            <td style="font-size: larger">商品名</td>
            <td style="font-size: larger">数量</td>
        </tr>
        <volist name="order.order_goods" id="list">
         <tr style="border:1px solid #ddd;">
            <td style="font-size: large">{$list.pname}{$list.quantity}</td>
            <td style="font-size: large">{$list.cartnum}</td>
        </tr>
        </volist>
    </table>
    <div class="text-center " style="margin-top: 70px;width: 100%">
        <table style="width: 100%">

            <tr style="border:1px solid #ddd;">
                <th>订单号：</th>
                <td>{$order.orderid}</td>
                <th>收货人：</th>
                <td>{$order.toName}</td>

            </tr>
            <tr>
                <th >备注：</th>
                <td></td>
                <th>地址:</th>
                <td>{$order.toCity}{$order.toStreet}{$order.toShopname}</td>
            </tr>
            <tr>
                <td colspan="4" style="color: red;font-size: large;font-weight: 700;">{$order.remark}</td>
            </tr>
        </table>
    </div>
</block>

<block name="script">
    <script type="text/javascript">
    </script>
</block>